package com.baizhi.dao;

import com.baizhi.entrty.Article;
import com.baizhi.entrty.ArticleDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ArticleDao {
    int getCount();

    List<Article> getArticle(@Param("start") int start, @Param("rows") int rows);

    void insert(Article ar);

    void delete(int[] id);

    List<ArticleDTO> showAll();

    List<Article> showArticle();


    List<ArticleDTO> getArticleDto(int userId);


}
